package com.lazily.homework;


/**
 * @Author:  GZQ
 * @date:  2025/2/24 20:48
 * @description: 练习4
 */

public class Homework04 {
	// 程序入口
	public static void main(String[] args) {
		// 打印 B -> C -> D
		try {
			showExce();
			System.out.println("A");
		} catch (Exception e) {
			System.out.println("B");
		} finally {
			System.out.println("C");
		}
		System.out.println("D");
	}

	public static void showExce() throws Exception{
		throw new Exception();
	}
}


